<form>
  <div class="modal-head">
    {{#if method}}
      <h2>{{t 'quality_gates' method }}</h2>
    {{/if}}
  </div>

  <div class="modal-body">
    <div class="modal-error"></div>
    <div class="modal-field">
      <label for="quality-gate-edit-name">{{t 'name'}} <em class="mandatory">*</em></label>
      <input id="quality-gate-edit-name" type="text" size="50" maxlength="100" value="{{name}}">
    </div>
  </div>

  <div class="modal-foot">
    {{#eq method "rename"}}<button>{{t 'save'}}</button>{{/eq}}
    {{#eq method "copy"}}<button>{{t 'copy'}}</button>{{/eq}}
    {{#eq method "create"}}<button>{{t 'create'}}</button>{{/eq}}
    <a id="quality-gate-cancel-create" class="action">{{t 'cancel'}}</a>
  </div>
</form>